# Murrina Gonxical, a murrine theme with colors derived from the Gtk+ theme "Gonxical", which themselves are taken from the Gonx project (http://cotito.free.fr/projects/gonx+index.html)

gtk_color_scheme = "fg_color:#262625\nbg_color:#EFEBE7\nbase_color:#FFFFFF\ntext_color:#262625\nselected_bg_color:#9DB3CC\nselected_fg_color:#000000\ntooltip_bg_color:#EFEBE7\ntooltip_fg_color:#262625"

style "theme-default"
{
  GtkButton      ::default_border    = { 0, 0, 0, 0 }
  GtkRange       ::trough_border     = 0
  GtkPaned       ::handle_size       = 6
  GtkRange       ::slider_width      = 15
  GtkRange       ::stepper_size      = 15
  
  GtkScrollbar   ::min_slider_length = 30
  GtkCheckButton ::indicator_size    = 14
  GtkMenuBar     ::internal-padding  = 0
  GtkTreeView    ::expander_size     = 14
  GtkExpander    ::expander_size     = 16
  GtkScale       ::slider-length     = 27
  #GtkToolbar    ::button-relief     = GTK_RELIEF_NORMAL
  #GtkMenuBar    ::shadow-type       = GTK_SHADOW_IN
  #GtkScrollbar  ::has-forward-stepper = 0
  #GtkScrollbar  ::has-backward-stepper = 0
  #GtkScrollbar  ::has-secondary-backward-stepper = 1
  
  xthickness = 2
  ythickness = 2

  fg[NORMAL]        = @fg_color
  fg[PRELIGHT]      = @selected_fg_color
  fg[ACTIVE]        = @fg_color
  fg[SELECTED]      = @selected_fg_color
  fg[INSENSITIVE]   = shade(4.3333, @fg_color) #"#a5a496"
  
  bg[NORMAL]        = @bg_color
  bg[PRELIGHT]      = @bg_color
  bg[ACTIVE]        = @bg_color
  bg[SELECTED]      = @selected_bg_color
  bg[INSENSITIVE]   = @bg_color

  base[NORMAL]      = @base_color	
  base[PRELIGHT]    = @selected_bg_color
  base[ACTIVE]      = @selected_bg_color
  base[SELECTED]    = @selected_bg_color
  base[INSENSITIVE] = @bg_color	

  text[NORMAL]      = @text_color
  text[PRELIGHT]    = @selected_fg_color
  text[ACTIVE]      = @text_color
  text[SELECTED]    = @selected_fg_color
  text[INSENSITIVE] = shade(4.3333, @fg_color) 

  engine "murrine" 
  {
	listviewstyle = 1 # 0 = nothing, 1 = dotted
	menuitemstyle = 1 # 0 = flat, 1 = glassy, 2 = striped
	glazestyle = 0 # 0 = flat hilight, 1 = curved hilight, 2 = concave style, 3 = top curved hilight, 4 = beryl style
      # colorize_scrollbar = FALSE
	contrast = 0.8
	menubarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
	menubaritemstyle = 0 # 0 = menuitem look, 1 = button look
	listviewheaderstyle = 1 # 0 = flat, 1 = glassy, 2 = raised
	roundness = 1 # 0 = squared, 1 = old default, more will increase roundness
    	animation = TRUE # FALSE = disabled, TRUE = enabled
	scrollbarstyle = 2 # Enable or disable circles, stripes, handles
	hilight_ratio = 0.90909090909 # Stolen from Nodoka, Fedora's default theme
  }
}


# Evolution (and some deprecated widgets) use bg and fg for its listview instead of 
# base and text like they should, so we override it.
style "evolution-hack" = "theme-default"
{
  bg[ACTIVE]   = @bg_color
  bg[SELECTED] = @selected_bg_color
  fg[ACTIVE]   = @text_color
  fg[SELECTED] = @selected_fg_color
}

style "theme-wide" = "theme-default"
{
  xthickness = 2
  ythickness = 2
}

style "theme-wider" = "theme-default"
{
  xthickness = 3
  ythickness = 3
}

style "theme-button" = "theme-wider"
{
}

style "theme-check" = "theme-button"
{
}

style "theme-range" = "theme-default"
{
  xthickness = 3
  ythickness = 3
}

style "theme-notebook" = "theme-wide"
{
  bg[NORMAL] = shade(1.05, @bg_color)
  bg[PRELIGHT] = shade(1.05, @bg_color)
  bg[ACTIVE] = shade(1.05, @bg_color)
  bg[INSENSITIVE] = shade(1.05, @bg_color)
}

style "theme-tasklist" = "theme-default"
{
  xthickness = 5
  ythickness = 3
}

style "theme-menu" = "theme-default"
{
  xthickness = 2
  ythickness = 1
}

style "theme-menu-item" = "theme-default"
{
  xthickness = 2
  ythickness = 3
}

style "theme-menubar" = "theme-default"
{
  xthickness = 2
  ythickness = 2
}

style "theme-menubar-item" = "theme-menu-item"
{
}

style "theme-tree" = "theme-default"
{
  xthickness = 2
  ythickness = 2
}

style "theme-frame-title" = "theme-default"
{
}

style "theme-tooltips" = "theme-default"
{
  xthickness = 4
  ythickness = 4
  bg[NORMAL] = @tooltip_bg_color
  fg[NORMAL] = @tooltip_fg_color
}

style "theme-progressbar" = "theme-wide"
{
  xthickness = 1
  ythickness = 1
}

style "theme-combo" = "theme-button"
{
}

style "metacity-frame" = "theme-default"
{
}

style "theme-panel-menubar" = "theme-default"
{
}


class "MetaFrames"     style "metacity-frame"
class "GtkWindow"      style "metacity-frame"

# widget styles
class "GtkWidget"	style "theme-default"
class "GtkButton"	style "theme-button"
class "GtkCombo"	style "theme-button"
class "GtkRange"	style "theme-wide"
class "GtkFrame"	style "theme-wide"
class "GtkMenu"		style "theme-menu"
class "GtkEntry"	style "theme-wider"
class "GtkMenuItem"	style "theme-menu-item"
class "GtkNotebook"	style "theme-notebook"
class "GtkProgressBar"	style "theme-progressbar"
class "GtkMenuBar"	style "theme-menubar"
class "GtkStatusbar"	style "theme-default"
class "GtkScrollbar"	style "theme-default"
class "GtkHBox"		style "theme-default"
class "GtkScale"	style "theme-range"
class "GtkCheckButton"	style "theme-check"
class "GtkSpinButton"	style "theme-default"

widget_class "*MenuItem.*"		style "theme-menu-item"

# combobox stuff
widget_class "*.GtkComboBox.GtkButton"	style "theme-combo"
widget_class "*.GtkCombo.GtkButton"	style "theme-combo"
widget_class "*.GtkComboBox.GtkFrame"	style "theme-wide"

# tooltips stuff
widget "gtk-tooltip*"			style "theme-tooltips"

# treeview stuff
widget_class "*.GtkTreeView.GtkButton"	style "theme-tree"
widget_class "*.GtkCTree.GtkButton"	style "theme-tree"
widget_class "*.GtkList.GtkButton"	style "theme-tree"
widget_class "*.GtkCList.GtkButton"	style "theme-tree"
widget_class "*.GtkFrame.GtkLabel"	style "theme-frame-title"

widget_class "*.GtkNotebook.*.GtkEventBox"	style "theme-notebook"
widget_class "*.GtkNotebook.*.GtkViewport"	style "theme-notebook"

# these should really use base and text colors instead
widget_class "*GtkCTree*"	style "evolution-hack"
widget_class "*GtkList*"	style "evolution-hack"
widget_class "*GtkCList*"	style "evolution-hack"
widget_class "*.ETree.*"	style "evolution-hack"
widget_class "*EInfoLabel*"	style "evolution-hack"

# panel menubar bg hack
widget "*Panel*Menu*"		style "theme-panel-menubar"
